.viewport {
  display: flex;
  height: 100vh;
  flex-direction: column;
  background-color: #fff;
  .search-panel {
    // background-color: aquamarine;
    // padding: 0 10rpx;
    width: 100%;
    padding: 0 10rpx;
    height: 64rpx;
    .icon-search {
      display: inline-block;
      width: 710rpx;
      padding: 0 10rpx;
      font-size: 26rpx;
      line-height: 64rpx;
      color: #8b8b8b;
      background-color: #f3f4f4;
      border-radius: 36rpx;

      .input {
        width: 100%;
        height: 64rpx;
        margin-left: 10rpx;
      }
    }
  }
  .categories {
    display: flex;
    flex-direction: row;
    flex: 1;
    padding-top: 20rpx;
    .left {
      // float: left;
      // flex: none;
      flex: initial;
      width: 180rpx;
      height: 100%;
      background-color: #f6f6f6;
      .primary-item {
        position: relative;
        height: 80rpx;
        text-align: center;
        line-height: 80rpx;
        color: #595c63;
        &::after {
          content: '';
          position: absolute;
          width: 80rpx;
          left: 50rpx;
          bottom: 0;
          border-bottom: 1px solid #e3e4e7;
        }
        &.active {
          width: 100%;
          background-color: #fff;

          &::before {
            content: '';
            position: absolute;
            width: 8rpx;
            height: 100%;
            left: 0;
            top: 0;
            background-color: #27ba9b;
          }
        }
        &:last-child::after,
        &.active::after {
          display: none;
        }
      }
    }
    .right {
      flex: 1;
      width: 510rpx;
      padding: 0 30rpx;
      .banner {
        // width: 510rpx;
        height: 200rpx;
      }

      .sub-categories {
        width: 100%;
        .sub-item {
          display: flex;
          flex-direction: column;
          .top {
            display: flex;
            justify-content: space-between;
            width: 100%;
            font-size: 32rpx;
            line-height: 60rpx;
            color: #999;
            border-bottom: 1px solid #e5e5e5;
            margin-bottom: 30rpx;
            .more {
              &::after {
                font-family: 'erabbit' !important;
                content: '\e6c2';
              }
            }
          }
          .goods-container {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            .good {
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              // width: 150rpx;
              width: 100%;
              margin-bottom: 30rpx;

              .image {
                // width: 150rpx;
                width: 150rpx;
                height: 150rpx;
                border-radius: 10rpx;
              }
              .title {
                display: flex;
                width: 150rpx;
                height: 80rpx;
                font-size: 28rpx;
                color: #333;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                .text {
                  // display: inline-block;
                  width: 150rpx;
                }
              }
              .price {
                width: 100%;
                color: #cf4444;
                line-height: 40rpx;
                .symbol {
                  font-size: 24rpx;
                  margin-right: 2rpx;
                }
                .number {
                  font-size: 28rpx;
                }
              }
            }
          }
        }
      }
    }
  }
}
